/*************************************************************************
    > File Name: config.h
    > Author: fanzhihui
    > Mail: 953106194@qq.com 
    > Created Time: 2019年07月01日 星期一 11时04分38秒
 ************************************************************************/
#ifndef _FTRACK_CONFIG_H_
#define _FTRACK_CONFIG_H_
#include "log/logger.h"
#include <string>

using namespace std;

class Config
{
public:
	static string video_url;

	//帧率 一般为25
	static int frame_rate;
	//每秒检测帧数
	static int frame_per_sec;

	//检查出人脸得最小分数
	static double min_score;
	static uint32_t max_face_num;

	//摄像头设备ID
	static string machine_id;

	//工作线程数，默认为1
	static uint32_t worker_count;

	static string face_httpd_ip;
	static int face_httpd_port;

	//工作模式
	static string mode;  // 1 track   2 detect 3 all


	static void dump(){
		LOG(LOG_INFO,"Config:");
		LOG(LOG_INFO," video_url:%s", video_url.c_str());
		LOG(LOG_INFO," frame_rate:%d", frame_rate);
		LOG(LOG_INFO," frame_per_sec:%d", frame_per_sec);
		LOG(LOG_INFO," min_score:%f",min_score);
		LOG(LOG_INFO," max_face_num:%u", max_face_num);
		LOG(LOG_INFO," machine_id:%s", machine_id.c_str());
		LOG(LOG_INFO," worker_count:%u", worker_count);
		LOG(LOG_INFO," face_httpd_ip:%s", face_httpd_ip.c_str());
		LOG(LOG_INFO," face_httpd_port:%d", face_httpd_port);
		LOG(LOG_INFO," mode:%s", mode.c_str());
	}
};




#endif


